//
//  NewsTableViewCell.m
//  OtakuWorld
//
//  Created by iOS Two on 14-9-24.
//  Copyright (c) 2014年 iOS Two. All rights reserved.
//

#import "NewsTableViewCell.h"

@implementation NewsTableViewCell

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        // Initialization code
        _image = [[UIImageView alloc]initWithFrame:CGRectMake(13, 10, 90, 60)];
        [self addSubview:_image];
        
        _titleLabel = [[UILabel alloc]initWithFrame:CGRectMake(117, 5, 200, 18)];
        _titleLabel.font = [UIFont fontWithName:@"STXIHEI" size:14];
        [self addSubview:_titleLabel];
        
        UIImageView *time = [[UIImageView alloc]initWithFrame:CGRectMake(117, 30, 12, 11)];
        time.image = [UIImage imageNamed:@"district_03"];
        [self addSubview:time];
        
        UIImageView *back = [[UIImageView alloc]initWithFrame:CGRectMake(132, 26, 152.5, 27)];
        back.image = [UIImage imageNamed:@"1_03"];
        [self addSubview:back];
        
        _startLabel = [[UILabel alloc]initWithFrame:CGRectMake(136, 19, 66, 40)];
        _startLabel.numberOfLines = 2;
        _startLabel.font = [UIFont systemFontOfSize:11];
        _startLabel.textAlignment = NSTextAlignmentCenter;
        _startLabel.textColor = [UIColor whiteColor];
        [self addSubview:_startLabel];
        
        _endLabel = [[UILabel alloc]initWithFrame:CGRectMake(213, 19, 66, 40)];
        _endLabel.numberOfLines = 2;
        _endLabel.font = [UIFont systemFontOfSize:11];
        _endLabel.textAlignment = NSTextAlignmentCenter;
        _endLabel.textColor = [UIColor colorWithRed:0.95 green:0.6 blue:0 alpha:1];
        [self addSubview:_endLabel];
        
        _locationLabel = [[UILabel alloc]initWithFrame:CGRectMake(133, 56, 150, 13)];
        _locationLabel.font = [UIFont fontWithName:@"STXIHEI" size:12];
        _locationLabel.textColor = [UIColor colorWithRed:0.95 green:0.59 blue:0.15 alpha:1];
        [self addSubview:_locationLabel];
        
        UIImageView *place = [[UIImageView alloc]initWithFrame:CGRectMake(117, 57, 12, 12.5)];
        place.image = [UIImage imageNamed:@"district"];
        [self addSubview:place];
        
        _typeImageV = [[UIImageView alloc]initWithFrame:CGRectMake(12, 8, 0, 0)];
        [self addSubview:_typeImageV];
        
        _typeLabel = [[UILabel alloc]initWithFrame:CGRectMake(12, 9, 40, 10)];
        _typeLabel.font = [UIFont systemFontOfSize:10];
        _typeLabel.textColor = [UIColor whiteColor];
        _typeLabel.textAlignment = NSTextAlignmentCenter;
        [self addSubview:_typeLabel];
    }
    return self;
}

- (void)awakeFromNib
{
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
